package me.lc.hammerheads.util;

import me.lc.hammerheads.R;
import me.lc.hammerheads.core.StageManager;

import com.wiyun.engine.sound.AudioManager;

public class AudioHelper {

	public static void playMusicInGame() {
		stopMusic();
		AudioManager.playBackgroundMusic(R.raw.music_ingame);
	}

	public static void stopMusic() {
		AudioManager.stopBackgroundMusic();
	}

	public static void playMusicMenu() {
		stopMusic();
		AudioManager.playBackgroundMusic(R.raw.music_menu);
	}

	public static void addHeart() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.addheart);
		}
	}

	public static void dwarfExplosion() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.bombdwarf_explosion);
		}
	}

	public static void dwarfBombShow() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.bombdwarf_explosion);
		}
	}

	public static void boom() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.boom);
		}
	}

	public static void buyTool() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.buytool);
		}
	}

	public static void duck() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.duck);
		}
	}

	public static void hammerAction() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.hammeraction);
		}
	}

	public static void knockHat() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.konckhat);
		}
	}

	public static void lose() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.lose);
		}
	}

	public static void manAU() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.man_au);
		}
	}

	public static void miss() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.miss);
		}
	}

	public static void silverKnock() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.silver_knock);
		}
	}

	public static void win() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.win);
		}
	}

	public static void womanAU() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.woman_au);
		}
	}

	public static void buttonClick() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.buttonclick);
		}
	}

	public static void lostHeart() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.lost_heart);
		}
	}

	public static void knock() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.knock);
		}
	}

	public static void go() {
		if (StageManager.instance.enableAudio == 1) {
			AudioManager.playEffect(R.raw.go);
		}
	}
}
